package cn.itsource.basic;

import lombok.Data;

@Data
public class AjaxResult {

    private String code = "200";

    private Boolean success = true;

    private String message = "操作成功";

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setCode(String code) {
        this.code = code;
        return this;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
}
